home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 108
/
jogo-disk-108.iso
/
Games
/
steppenwolf_1_chapter_4.swf
/
scripts
/
DefineButton2_790
/
BUTTONCONDACTION on(keyPress S).as
< prev
next >
Wrap
Text File
|
2010-05-15
|
1KB
|
31 lines
on(keyPress "S"){
if(eval("/:Challenge") != true)
{
if(getProperty("_root.Animatiques", _currentframe) == 1)
{
set("/Variables:SaveArray",new Array());
i = 0;
while(i < eval("/Variables:InvNbTotal"))
{
set(eval("/Variables:SaveArray"),eval("/Variables:SaveArray").Push(false));
i += 1;
}
set("/Variables:InventaireSave","/Variables:InventaireSaveString"());
set("/Variables:MegSetting",new §/Variables:Setting§());
set("/Variables:MegSave","/Variables:MegSaveString"());
"/Variables:VariablesSaveString"();
set("/Save:Fichier",eval("/Variables:NomsVariablesSave") + "@" + eval("/Variables:ValeursVariablesSave") + "@" + eval("/Variables:TypeVariablesSave") + "@" + eval("/Variables:InventaireSave") + "@" + eval("/Variables:MegSave"));
getURL("FSCommand:save",eval("/Save:Fichier"));
tellTarget("_root.GameSaved")
{
play();
}
tellTarget("_root.GameSaved")
{
play();
}
gotoAndStop(1);
}
}
}